<template>
  <div>
    <a v-bind:href="url">去百度</a>
    <img :src="imgUrl">
    <!-- :给标签的属性赋值 -->
    <img :src="localImg" alt="">
  </div>
</template>

<script>
// 导出图片
import imgObj from './assets/1.gif'
export default {
  data () {
    return {
      url:'http://www.baidu.com',
      imgUrl:"http://img.alicdn.com/tfs/TB1Cq1HekvoK1RjSZPfXXXPKFXa-502-380.jpg_240x240q90.jpg",
      localImg:imgObj
    }
  }
}
</script>

<style>

</style>